package project6;

public class hero {
    private String name;
    private int life;
    private int att;
    public void attack(hero b)
    {
        b.life=b.life-att;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setLife(int life) {
        this.life = life;
    }

    public void setAtt(int att) {
        this.att = att;
    }

    public hero(String name, int life, int att) {
        this.name = name;
        this.life = life;
        this.att = att;
    }

    public hero() {
    }

    public String getName() {
        return name;
    }

    public int getLife() {
        return life;
    }

    public int getAtt() {
        return att;
    }
}
